package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface HosipitalReposity extends MongoRepository<Hospital,String> {

    // 判断是否存在方法
    Hospital getHospitalByHoscode(String hoscode);
}
